﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASoft.Msg
{
    /// <summary>
    /// Single Byte Property Attriubte
    /// </summary>
    public class SPAttribute : Attribute
    {
        public SPAttribute(byte order, bool onlyRead)
        {
            this.Order = order;
            this.OnlyRead = onlyRead;
        }

        public SPAttribute(byte order)
            : this(order, false)
        {
        }

        public byte Order { get; private set; }

        public bool OnlyRead { get; private set; }
    }
}
